package de.hsmannheim.poolraumapp.model;

import java.util.Iterator;
import java.util.List;

import org.joda.time.DateTime;

public class RoomReservations implements Iterable<RoomReservation> {
	private DateTime lastModified;
	private List<RoomReservation> roomReservations;
	
	public RoomReservations(DateTime lastModified, List<RoomReservation> roomReservations) {
		this.lastModified = lastModified;
		this.roomReservations = roomReservations;
	}
	
	public DateTime getLastModified() {
		return lastModified;
	}

	public List<RoomReservation> getRoomReservations() {
		return roomReservations;
	}

	@Override
	public Iterator<RoomReservation> iterator() {
		return roomReservations.iterator();
	}
}
